Don't assume vcpu_id's are contiguous in alloc_vcpu
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 12 Nov 2009 13:15:40 +0000 (13:15 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 12 Nov 2009 13:15:40 +0000 (13:15 +0000)
commit86a7522040af1fb0c1bb495a9c84f0c6cd7f0b39
treea21286fa9dbb3b6d81ecba50fdba195bd1d74687
parent48fd672feeff15417fc6e135b221c2e07a5d67a2
Don't assume vcpu_id's are contiguous in alloc_vcpu

When cpu hot-added, this assumption is broken because the hot-added
CPU may be brougt online by dom0 in arbitrary order. This patch avoids
making this assumption while still linking vcpus in ascending order of
identifier.

Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/common/domain.c